import request from '@/utils/request'

export function getList(year,gradeName,name,current,size) {
  return request.get("/class/list",{params:{year,gradeName,name,current,size}})
}

export function listAll() {
  return request.get("/grade/listAll")
}

export function save(cclass) {
  return request.post("/class/save",cclass)
}

export function update(cclass) {
  return request.post("/class/update",cclass)
}

export function del(ids) {
  return request.post("/class/remove",ids)
}

export function getStudents(id) {
  return request.get("/class/getStudents/"+id)
}
